import request from '@/utils/request'

// 查询景区门票预订列表
export function listScenebook(query) {
  return request({
    url: '/booking/scenebook/list',
    method: 'get',
    params: query
  })
}

// 查询景区门票预订详细
export function getScenebook(scenicBookingId) {
  return request({
    url: '/booking/scenebook/' + scenicBookingId,
    method: 'get'
  })
}

// 新增景区门票预订
export function addScenebook(data) {
  return request({
    url: '/booking/scenebook',
    method: 'post',
    data: data
  })
}

// 修改景区门票预订
export function updateScenebook(data) {
  return request({
    url: '/booking/scenebook',
    method: 'put',
    data: data
  })
}

// 删除景区门票预订
export function delScenebook(scenicBookingId) {
  return request({
    url: '/booking/scenebook/' + scenicBookingId,
    method: 'delete'
  })
}
